<?php

/*
|--------------------------------------------------------------------------
| Admin Routes
|--------------------------------------------------------------------------
|
| This file is where you may override any of the routes that are included
| with Voyager.
|
*/

Route::group(['as' => 'company.','prefix'=>'admin'], function () {

    $namespacePrefix = '\\App\\Admin\\Controllers\\Company\\';


    Route::group(['middleware' => ['admin.user']], function () use ($namespacePrefix) {
        Route::get('company/announcement', ['uses' => $namespacePrefix . 'CompanyController@announcement', 'as' => 'announcement']);
        Route::get('company/system', ['uses' => $namespacePrefix . 'CompanyController@system', 'as' => 'system']);
        Route::post('company/edit', ['uses' => $namespacePrefix . 'CompanyController@edit', 'as' => 'edit']);

    });

});
